﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> 
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<%@include file="common.jsp"%>
<title>工程界后台管理系统</title>
<style type="text/css">
html, body {
	margin: 0;
	padding: 0;
	background-color: #fafafa;
}

.main_top {
	position: relative;
}

.top_header {
	height: 130px;
	margin-bottom: 5px;
	box-shadow: 2px 2px 5px #ccc;
	padding-left: 20px;
	line-height: 130px;
	font-size: 30px;
	font-weight: bold;
}

.left_menu {
	width: 15%;
	float: left;
	margin: 0;
	padding: 0;
}

.right_frame {
	float: left;
	margin-left: 5px;
	border: 1px solid #ccc;
	border-radius: 5px 5px;
}

.topright {
	position: absolute;
	right: 20px;
	bottom: 10px;
}
</style>
<script type="text/javascript">
	$(document)
			.ready(
					function() {
						var $iframe = $("#main_iframe"), iframe = $iframe.get(0), $left_menu = $(".left_menu .panel");
						$left_menu.height(Math.max(document.body.scrollHeight- $(".top_header").height() - 7,
						(window.screen.availHeight - 220)));//5（top_header的margin)+2(border)
						function resetFrameSize() {
							$iframe.width(document.body.clientWidth- $(".left_menu").width() - 15);
							try {
								var bHeight = iframe.contentWindow.document.body.scrollHeight;
								var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
								iframe.height = Math.max(Math.min(bHeight,dHeight),
										(window.screen.availHeight - 220)) - 7;//5（top_header的margin)+2(border)
							} catch (ex) {
							}
						}
						window.setInterval(resetFrameSize, 100);
						$(window).resize(resetFrameSize);
						//为菜单绑定事件
						$(".nav li a").click(function() {
							$(".nav li").removeClass("active");
							$(this).parent().addClass("active");
						});
					});
</script>
</head>
<body>
	
	<div class="main_top">
		<div class="topleft">
			<div class="top_header">
				<span>工程界后台管理系统</span>
				
			</div>
		</div>
		
		<div class="topright">
		欢迎您:${user.nickname}
			<a href="">帮助</a>| <a href="">关于</a>| <a
				href="view/user/logout" target="_parent">退出</a>
		</div>
	</div>
	<div class="left_menu">
		<div class="panel" style="margin-bottom: 0;">
			<div class="panel-heading">导航菜单</div>
			<div class="panel-body" style="padding: 0;">
				<nav class="menu" data-toggle="menu">
					<ul class="nav nav-primary">
						<li class="active show"><a href="javascript:void(0);"><i class="icon-home"></i>首页管理</a>
							<ul class="nav">
								<li><a href="file.htm" target="main_iframe"><i class="icon icon-font"></i> 轮播图管理</a></li>
							</ul>
						</li>
						<li><a href="javascript:void(0);"><i class="icon icon-copy"></i> 词典管理</a>
							<ul class="nav">
								<li><a href="dict.htm" target="main_iframe"><i class="icon icon-font"></i> 词典管理</a></li>
							</ul>
						</li>
						<li><a href="javascript:void(0);"><i class="icon icon-book"></i> 专题管理</a>
							<ul class="nav">
								<li><a href="subject.htm" target="main_iframe"><i class="icon icon-bookmark"></i> 专题管理</a></li>
							</ul>
						</li>
						<c:choose>
							<c:when test="${role[0].roleId ==3}">
							<li><a href="javascript:void(0);"><i class="icon icon-copy"></i> 资料库</a>
								<ul class="nav">
									<li><a href="file.htm" target="main_iframe"><i class="icon icon-file-o"></i> 资料列表</a></li>
									<li><a href="topCategory.htm" target="main_iframe"><i class="icon icon-file-o"></i> 资料分类管理</a></li>
									<li><a href="file/type.htm" target="main_iframe"><i class="icon icon-file-text-o"></i> 文件格式</a></li>
									<!--<li><a href="file/tag.htm" target="main_iframe"><i class="icon icon-file"></i> 文件标签管理</a></li>
									 <li><a href="file.htm" target="main_iframe"><i class="icon icon-key"></i> 热搜词管理</a></li> -->
									<li><a href="file/comment.htm" target="main_iframe"><i class="icon icon-chat"></i> 文件评论管理</a></li>
								</ul>
							</li>
							<li><a href="javascript:void(0);"><i class="icon-coffee"></i> 职业快车道</a>
								<ul class="nav">
    								<li><a href="cert.htm" target="main_iframe"><i class="icon icon-file-o"></i> 职业考证体系列表</a></li>
									<li><a href="build.htm" target="main_iframe"><i class="icon icon-file-o"></i> 建筑类别体系列表</a></li>
									<li><a href="skill.htm" target="main_iframe"><i class="icon icon-file-o"></i> 工程技能体系列表</a></li>
									<li><a href="plan.htm" target="main_iframe"><i class="icon icon-file-o"></i> 职业规划体系列表</a></li>
								</ul>
							</li>							
							<li><a href="javascript:void(0);"><i class="icon-book"></i> 论文图书馆</a>
								<ul class="nav">
									<li><a href="thesis.htm" target="main_iframe"><i class="icon icon-user"></i> 论文图书馆列表</a></li>
	<!-- 								<li><a href="thesis/category.htm" target="main_iframe"><i class="icon icon-file-o"></i> 论文分类管理</a></li> -->
									<li><a href="thesis/type.htm" target="main_iframe"><i class="icon icon-file-text-o"></i> 论文格式</a></li>
									<li><a href="thesis/tag.htm" target="main_iframe"><i class="icon icon-file"></i> 论文标签管理</a></li>
									<li><a href="thesis/comment.htm" target="main_iframe"><i class="icon icon-chat"></i> 文件评论管理</a></li>
								</ul>
							</li>
	<!-- 						<li><a href="javascript:void(0);"><i class="icon-group"></i> 职业规划</a>
								<ul class="nav">
									<li><a href="user.htm" target="main_iframe"><i class="icon icon-book"></i> 工程资料库</a></li>
								</ul>
							</li> -->
							<li><a href="javascript:void(0);"><i class="icon-coffee"></i> 企业课程</a>
								<ul class="nav">
									<li><a href="course.htm" target="main_iframe"><i class="icon icon-user"></i> 课程列表</a></li>
								</ul>
							</li>

							<li><a href="javascript:void(0);"><i class="icon-cube-alt"></i> 百问百答</a>
								<ul class="nav">
									<li><a href="postbar.htm" target="main_iframe"><i class="icon icon-user"></i> 百问百答列表</a></li>
								</ul>
							</li>
							<li><a href="javascript:void(0);"><i class="icon-newspaper-o"></i> 新闻资讯</a>
								<ul class="nav">
									<li><a href="news.htm" target="main_iframe"><i class="icon icon-newspaper-o"></i> 新闻资讯列表</a></li>
									 <li><a href="news/type.htm" target="main_iframe"><i class="icon icon-file-text-o"></i> 新闻分类</a></li>
									 <li><a href="news/tag.htm" target="main_iframe"><i class="icon icon-file"></i> 标签管理</a></li>
									 <li><a href="news/comment.htm" target="main_iframe"><i class="icon icon-chat"></i> 新闻评论管理</a></li>
								</ul>
							</li>
							<li><a href="javascript:void(0);"><i class="icon-newspaper-o"></i> 企业管理</a>
								<ul class="nav">
									<li><a href="company.htm" target="main_iframe"><i class="icon icon-newspaper-o"></i> 企业列表</a></li>
								</ul>
							</li>		
							<li><a href="javascript:void(0);"><i class="icon-newspaper-o"></i> 博文管理</a>
								<ul class="nav">
									<li><a href="news.htm" target="main_iframe"><i class="icon icon-newspaper-o"></i> 博文列表</a></li>
								</ul>
							</li>							
							</c:when>
						</c:choose>
						<li><a href="javascript:void(0);"><i class="icon-group"></i> 用户管理</a>
							<ul class="nav">
								<li><a href="changepw.htm" target="main_iframe"><i class="icon icon-user"></i>修改密码</a></li>
							</ul>
						</li>
					</ul>
				</nav>
			</div>
		</div>
	</div>
	<div class="right_frame">
		<iframe id="main_iframe" name="main_iframe" frameborder="0"
			width="100%" height="100%" src="welcome.html" scrolling="no">
			<!-- 主窗口 -->
		</iframe>
	</div>
</body>
</html>